package cn.spike.rockcc.service.impl;

import cn.spike.rockcc.domain.CourseOrderItem;
import cn.spike.rockcc.mapper.CourseOrderItemMapper;
import cn.spike.rockcc.service.ICourseOrderItemService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import jdk.nashorn.internal.runtime.regexp.joni.constants.EncloseType;
import org.springframework.stereotype.Service;

import javax.swing.text.html.parser.Entity;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author spike
 * @since 2023-03-20
 */
@Service
public class CourseOrderItemServiceImpl extends ServiceImpl<CourseOrderItemMapper, CourseOrderItem> implements ICourseOrderItemService {

    @Override
    public CourseOrderItem getCourseOrderItem(Long orderId) {
        Wrapper<CourseOrderItem> wrapper = new EntityWrapper<>();
        wrapper.eq("order_id",orderId);
        CourseOrderItem courseOrderItem = super.selectOne(wrapper);
        return courseOrderItem;
    }
}
